
<%@page import="java.util.List"%>
<%@page import="com.cn.dao.DepartmentDao"%>
<%@page import="com.cn.entity.Department"%>
<%@page import="com.cn.entity.Doctor"%>
<%@page import="com.cn.dao.DoctorDao"%>


<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>北京医院</title>
</head>
<body>
<h4>医生增加</h4>
<form action="DoctorAddAction" method="post">
<table>

<tr>
<td>医生编号</td>
<td><input type="text" name="doctor.doctorno" ></td>
</tr>

<tr>
<td>用户名</td>
<td><input type="text" name="doctor.doctorname" ></td>
</tr>
<tr>
<td>密码</td>
<td><input type="password" name="doctor.password" ></td>
</tr>
<tr>
<td>真实姓名</td>
<td><input type="text" name="doctor.xingming" ></td>
</tr>
<tr>
<td>电话</td>
<td><input type="text" name="doctor.phone"  ></td>
</tr>
<tr>
<td>身份证号码</td>
<td><input type="text" name="doctor.identity" ></td>
</tr>
<tr>
<td>E_mail</td>
<td><input type="text" name="doctor.email" ></td>
</tr>

<tr>
<td>职称</td>
<td><input type="text" name="doctor.title" ></td>
</tr>

<tr>
<td>科室</td>
<td><select name="departmentname" >
<%DepartmentDao ded=new DepartmentDao();List<Department> li=ded.scanAll(); %>
<% for (int i=0;i<li.size();i++)

{  Department dep=li.get(i);  
%>
<option><%=dep.getDepartmentname()%></option>

<%} %>

</select>

</td>
</tr>

<tr>
<td>权限</td>
<td><input type="text" name="doctor.pro"  ></td>
</tr>

<tr>
<td>自我介绍</td>
<td><input type="text" name="doctor.selfintroduce"  ></td>
</tr>

<tr>
<td></td>
<td><input type="submit" value="增加"></td>
</tr>



</table>

</form>
</body>
</html>